<?php
/*+++++++++++用户相关操作++++++++++++++++*/
$api->group(['namespace' => 'User'], function ($api){

    $api->get('getuser', 'UserController@getUser');
    $api->get('getaddress', 'UserController@getAddress');
    $api->get('getaddressraw', 'UserController@getAddressRow');
    $api->post('userupdate', 'UserController@update');

    $api->post('useraddressadd', 'UserController@addAddress');
    $api->post('useraddressupdate', 'UserController@updateAddress');
    $api->any('useraddressdel', 'UserController@delAddress');

    $api->any('getuserstatic', 'UserController@getStatic');
    $api->any('getusercredit', 'UserController@getCredit');
    $api->any('getuserreward', 'UserController@getReward');
    $api->any('getuserorder', 'UserController@getOrder');
});



